package com.ruyuan.starter.jedis;

import java.util.concurrent.TimeUnit;

/**
 * @author zhonghuashishan
 */
public interface LockService {

    String tryLock(String lockKey, long expiration, TimeUnit timeUnit);

    boolean release(String lockKey, String lockToken);

}
